<template>
  <div>
    <div>
      <el-button @click="pageName = 'UserInfo'">个人信息</el-button>
      <el-button @click="pageName = 'JobInfo'">岗位信息</el-button>
    </div>

    <!-- <job-info v-if="pageName === 'JobInfo'" />
    <user-info v-else /> -->
    <component :is="pageName" />
  </div>
</template>

<script>
import JobInfo from './components/job-info.vue'
import UserInfo from './components/user-info.vue'
export default {
  components: { JobInfo, UserInfo },
  data() {
    return {
      pageName: 'UserInfo'
    }
  }
}
</script>

<style>

</style>
